From f0b86de29bfc32104fe92eeee1e61c46b9229f13 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 3 Jul 2010 13:37:49 +0000 Subject: [PATCH] Fix E_STRICT about different function signature --- includes/specials/SpecialUpload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index dc1da4aedb..65cbfaae72 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -1083,7 +1083,7 @@ class UploadForm extends HTMLForm { * A form field that contains a radio box in the label */ class UploadSourceField extends HTMLTextField { - function getLabelHtml() { + function getLabelHtml( $cellAttributes = array() ) { $id = "wpSourceType{$this->mParams['upload-type']}"; $label = Html::rawElement( 'label', array( 'for' => $id ), $this->mLabel ); @@ -1100,7 +1100,7 @@ class UploadSourceField extends HTMLTextField { $label .= Html::element( 'input', $attribs ); } - return Html::rawElement( 'td', array( 'class' => 'mw-label' ), $label ); + return Html::rawElement( 'td', array( 'class' => 'mw-label' ) + $cellAttributes, $label ); } function getSize() { -- 2.20.1